﻿using _2008A.PH5._0221_0317.FuXi.Domain;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2008A.PH5._0221_0317.FuXi.EFCore
{
    public class FuXiDbContext : DbContext
    {
        public FuXiDbContext(DbContextOptions<FuXiDbContext> options) : base(options)
        { }

        public DbSet<MemberEntity> Members { get; set; }
        public DbSet<CategoryEntity> Categories { get; set; }
        public DbSet<BrandEntity> Brands { get; set; }
        public DbSet<LogEntity> Logs { get; set; }

        public DbSet<ProductEntity>  Products { get; set; }
        public DbSet<ProductImageEntity>  ProductImages { get; set; }
        public DbSet<OrderEntity>  Orders { get; set; }
        public DbSet<OrderDetailEntity>  OrderDetails { get; set; }
    }
}
